<?php
class Api_Form_User extends Zend_Form {
	public function __construct($value = null, $options = null, $req = true) {
		parent::__construct ( $options );
		$this->addElement ( 'text', 'login', array ("required" => $req, "validators" => array (array ("regex", false, '/^([a-zA-Z0-9_]){5,18}$/' ) ), "label" => "Login" ) )->addElement ( 'text', 'password', array ("required" => $req, "validators" => array (array ("regex", false, '/^([a-zA-Z0-9_]){5,18}$/' ) ), "label" => "Password" ) )->addElement ( 'checkbox', 'price_scheme', array ("required" => $req, "label" => "Price scheme" ) )->addElement ( 'checkbox', 'is_admin', array ("required" => $req, "label" => "Is Admin" ) )->addElement ( 'submit', 'Submit' );
	}
}